package com.lechi.web.system.service.impl;

import com.lechi.web.system.domain.IotOperLog;
import com.lechi.web.system.mapper.iot.IotOperLogMapper;
import com.lechi.web.system.service.IIotOperLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 操作日志记录Service业务层处理
 *
 * @author yangguang
 * @date 2024-05-17
 */
@Service
@RequiredArgsConstructor
public class IotOperLogServiceImpl implements IIotOperLogService {

    private final IotOperLogMapper iotOperLogMapper;


    /**
     * 查询操作日志记录列表
     *
     * @param iotOperLog 操作日志记录
     * @return 操作日志记录
     */
    @Override
    public List<IotOperLog> selectIotOperLogList(IotOperLog iotOperLog) {
        return iotOperLogMapper.selectIotOperLogList(iotOperLog);
    }

    /**
     * 新增操作日志记录
     *
     * @param iotOperLog 操作日志记录
     */
    @Override
    public void insertIotOperLog(IotOperLog iotOperLog) {
        iotOperLogMapper.insertIotOperLog(iotOperLog);
    }


    /**
     * 批量删除操作日志记录
     *
     * @param ids 需要删除的操作日志记录主键
     */
    @Override
    public void deleteIotOperLogByIds(Long[] ids) {
        iotOperLogMapper.deleteIotOperLogByIds(ids);
    }

}
